<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <!--							<button shiro:hasPermission="jzweb:trainingCertificates:add" type="button" class="btn  btn-primary" onclick="add()">-->
                        <!--								<i class="fa fa-plus" aria-hidden="true"></i>添加-->
                        <!--							</button>-->

                        <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                                class="btn  btn-success"
                                onclick="exportExcelModel()">
                            <i class="fa fa-download" aria-hidden="true"></i>导出PDF
                        </button>

                        <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                                class="btn  btn-success"
                                onclick="downExcelModel('/jzweb/trainingCertificates/downloadImportTemplate')">
                            <i class="fa fa-download" aria-hidden="true"></i>下载导入模板
                        </button>
                    </div>

                    <div class="columns pull-left col-md-1.5 nopadding" >
                        <input id="numPeriods" type="number" class="form-control"
                               placeholder="请输入考核期数">
                    </div>

                    <div class="columns pull-left" style="margin-left:4px">
                        <select shiro:hasPermission="jzweb:trainingCertificates:import" id="cType" name="cType" class="form-control">
                            <option value="">请选择专家类型</option>
                            <option value="0">师资</option>
                            <option value="1">考评员</option>
                            <option value="2">考务技术员</option>
                            <option value="3">考务技术员-结业证书</option>
                            <option value="4">督导员</option>
                            <option value="5">督导员-结业证书</option>
                            <option value="6">高级师资</option>
                            <option value="7">高级考评员</option>
                        </select>
                    </div>

                    <div class="columns pull-left" style="margin-left:4px">
                        <select shiro:hasPermission="jzweb:trainingCertificates:import" id="region" name="region" class="form-control">
                            <option value="">请选择省份</option>
                            <option value="11">北京市</option>
                            <option value="12">天津市</option>
                            <option value="13">河北省</option>
                            <option value="14">山西省</option>
                            <option value="15">内蒙古</option>
                            <option value="21">辽宁省</option>
                            <option value="22">吉林省</option>

                            <option value="23">黑龙江</option>
                            <option value="31">上海市</option>
                            <option value="32">江苏省</option>
                            <option value="33">浙江省</option>
                            <option value="34">安徽省</option>
                            <option value="35">福建省</option>
                            <option value="36">江西省</option>

                            <option value="41">河南省</option>
                            <option value="42">湖北省</option>
                            <option value="43">湖南省</option>
                            <option value="44">广东省</option>
                            <option value="45">广西省</option>
                            <option value="46">海南省</option>

                            <option value="50">重庆市</option>
                            <option value="51">四川省</option>
                            <option value="52">贵州省</option>
                            <option value="53">云南省</option>
                            <option value="54">西藏</option>

                            <option value="61">山西省</option>
                            <option value="62">甘肃省</option>
                            <option value="63">青海省</option>
                            <option value="64">宁夏</option>
                            <option value="65">新疆</option>

                            <option value="66">新疆兵团</option>
                            <option value="71">台湾</option>
                            <option value="81">香港</option>
                            <option value="82">台湾</option>
                            <option value="91">海外</option>
                        </select>
                    </div>
                    <div class="columns pull-left" style="margin-left:4px">

                        <div class="col-sm-8">
                            <input id="dateAdd" style="width:200px" name="dateAdd" class="form-control" type="text"
                                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请输入证书落款时间">
                        </div>
                    </div>
                    <div class="columns pull-left" style="margin-left:4px">
                        <select shiro:hasPermission="jzweb:trainingCertificates:import" id="cprofileId" class="form-control">
                            <option value="">请选择培训证书</option>
                            <option th:each="item : ${cprofileIds}" th:value="${item.id}"
                                    th:text="${item.name}"></option>
                        </select>
                    </div>

                    <div class="columns pull-left" style="margin-left:4px">
                        <form shiro:hasPermission="jzweb:trainingCertificates:import" id="importExcelForm" method="post"
                              enctype="multipart/form-data">
                            <input class="form-control" style="width:200px" name="file" id="fileUrl" type="file">
                        </form>
                    </div>



                    <div class="columns pull-left" style="margin-left:4px">
                        <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                                class="btn  btn-success"
                                onclick="importExcel1($('#fileUrl'),$('#importExcelForm'),$('#dateAdd').val(),$('#cprofileId').val(),$('#cType').val(),'/jzweb/trainingCertificates/import')">
                            <i class="fa fa-upload" aria-hidden="true"></i>导入
                        </button>
                    </div>
                    <button shiro:hasPermission="jzweb:trainingCertificates:batchRemove" type="button" class="btn  btn-danger"
                            onclick="batchRemove()">
                        <i class="fa fa-trash" aria-hidden="true"></i>删除
                    </button>
                    <div class="columns pull-right">
                        <button class="btn btn-success" onclick="reLoad()">查询</button>
                    </div>
                    <div class="columns pull-right col-md-0.5 nopadding">
                        <select id="searchState" name="searchState" class="form-control">
                            <option value="">请选择</option>
                            <option value="0">正常</option>
                            <option value="1">无效</option>
                            <option value="9">已删除</option>
                        </select>
                    </div>
                    <div class="columns pull-right col-md-1 nopadding">
                        <input id="numbers" type="text" class="form-control"
                               placeholder="请输入证书编号">
                    </div>
                    <div class="columns pull-right col-md-1 nopadding">
                        <input id="coursesName" type="text" class="form-control"
                               placeholder="请输入课程名">
                    </div>
                    <div class="columns pull-right col-md-1 nopadding">
                        <input id="searchName" type="text" class="form-control"
                               placeholder="请输入会员名">
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 -->
<div>
    <script type="text/javascript">
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
        var s_resetPwd_h = 'hidden';
    </script>
</div>
<div shiro:hasPermission="jzweb:trainingCertificates:edit">
    <script type="text/javascript">
        s_edit_h = '';
    </script>
</div>
<div shiro:hasPermission="jzweb:trainingCertificates:remove">
    <script type="text/javascript">
        var s_remove_h = '';
    </script>
</div>
<div shiro:hasPermission="jzweb:trainingCertificates:resetPwd">
    <script type="text/javascript">
        var s_resetPwd_h = '';
    </script>
</div>
</div>
<div th:include="include :: footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/trainingCertificates/trainingCertificates.js"></script>
</body>
</html>